$(document).ready(function(){

		resetPopWinPt();
		window.onscroll=windowRestWinForIe6;
		window.onresize=windowRestWinForIe6;
		$.ajaxSetup ({
		    cache: false
		});
});

var gobalResetSize = false;

function windowRestWinForIe6()
{
		if($("#popdiv").css("display")=='none')
				return ;
		if(!gobalResetSize)
			{
				return ;
			}
		resetPopDivSize();	
}

function resetPopDivSize(){
			var width=document.body.scrollWidth+"px";
			var height=document.body.scrollHeight+"px";
			$("#popdiv").css("width",width);
			$("#popdiv").css("height",height);
			$("#popdiv_t").css("width",width);
			$("#popdiv_t").css("height",height);
			$(".popcontainer").css({"top":$(window).scrollTop()+100,"left":document.body.clientWidth/2-$("#popcontainerid").css("width").substring(0,$("#popcontainerid").css("width").indexOf("px"))/2});
}

function resetPopWinPt(){
			if($("#popdiv").css("display")=='none')
				return ;
			resetPopDivSize();
			gobalResetSize=true;
	}
	
	function showPopDiv(url)
	{
			
			if($("#popdiv").css("display")=='none'){
				$.ajax({
				  url: url,
				  cache: false,
				  success: function(html){
				  	$("#popdiv").css("display","block");
				    $("#popdiv_t").css("display","block");
				    $("#popdiv").append(html);
				    resetPopWinPt();
				  }
				}); 
				
			}else{
				$("#popdiv").css("display","none");
				$("#popdiv_t").css("display","none");
				gobalResetSize=false;
				}
	}